import os
from subprocess import Popen

if __name__ == '__main__':
    for uiFile in os.listdir("./ui"):
        (base, ext) = os.path.splitext(uiFile)
        print(base, ext)

        p = Popen(["pyuic5.exe", f"./ui/{uiFile}", "-o", f"./ui_pkg/{base}.py"], shell=True)
